#include "object_panel.h"

#include "material_panel.h"

#include "object/object.h"


namespace Ui {
	
Object_Panel::Object_Panel(Material_Panel* _material_panel, QWidget* _parent) : QWidget(_parent), material_panel(_material_panel), object(0) { }
	
Object_Panel::~Object_Panel(void) { }
	
void Object_Panel::set_object(Sirat::Object::Object* _object) {
	object = _object;
	material_panel->select_material(_object->get_material());
}
	
}
